/**
 * 
 */
package RecordManagement;

/**
 * @author Neil
 * A label for a record.
 * It records a pageNum containing this record, and the slotNum of this record in the page.
 */
public class RID {
	private int pageNum;
	private int slotNum;
	
	public RID(int pageNum, int slotNum) {
		this.pageNum = pageNum;
		this.slotNum = slotNum;
	}
	
	public RID(RID rid){
		this.pageNum = rid.pageNum;
		this.slotNum = rid.slotNum;
	}
	
	int GetPageNum() {
		return pageNum;
	}
	
	int GetSlotNum() {
		return slotNum;
	}
	
	public String toString() {
		return "(" + pageNum + ", " + slotNum + ")";
	}
}
